/*
 * *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.mgt.server.mapper.power;

import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.github.yulichang.base.MPJBaseMapper;
import com.iwindplus.mgt.server.model.power.PositionRoleDO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 职位角色关系数据访问层接口类.
 *
 * @author zengdegui
 * @since 2019/10/9
 */
@Mapper
public interface PositionRoleMapper extends MPJBaseMapper<PositionRoleDO> {
    /**
     * 真实删除.
     *
     * @param ids 主键集合
     * @return int
     */
    int deleteByIds(@Param(Constants.LIST) List<Long> ids);

    /**
     * 通过职位主键真实删除.
     *
     * @param positionIds 职位主键集合
     * @return int
     */
    int deleteByPositionIds(@Param(Constants.LIST) List<Long> positionIds);

    /**
     * 通过角色主键真实删除.
     *
     * @param roleIds 角色主键集合
     * @return int
     */
    int deleteByRoleIds(@Param(Constants.LIST) List<Long> roleIds);
}
